
package controller.game;


import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

import view.window.MainView;

import model.Model;
import model.role.player.Player;


public class GameListener implements KeyListener {

	private Model[][] mapData;



	private Player player;



	private MainView mainView;



	public GameListener(MainView mainView, Model[][] mapData, Player player) {

		this.mapData = mapData;

		this.player = player;
		this.mainView = mainView;

		

		mainView.setVisible(true);
	}

	@Override
	public void keyTyped(KeyEvent e) {
	}

	@Override
	public void keyReleased(KeyEvent e) {

	}

	@Override
	public void keyPressed(KeyEvent e) {
		vip(e);
		Move(e);
	}

	/**
	 * vip模式
	 */
	private void vip(KeyEvent e) {
		
	}

	/**
	 * 移动要做的事
	 */
	private void Move(KeyEvent e) {
		
	}

	/**
	 * 人物接触格子
	 */
	private void contact(int x, int y) {
		
	}

	/**
	 * 不能通行的网格提示
	 */
	private void noEntryInof(int x, int y) {
		
	}

	/**
	 * 对npc处理
	 */
	private void npc(int x, int y) {
		
	}

	/**
	 * 购买商品
	 */
	private void shop() {
	
	}

	/**
	 * 显示提示
	 */
	private void showInof(int x, int y) {
		
	}

	/**
	 * 刷新楼层
	 */
	private void updateFloor() {
		

	}
}
